<?php

  $imageFile = $_POST['image'];
  $path = $imageFile."Rating.txt";

  $fHandler = fopen($path, 'r') or die("Cannot open file");
  $curRating = fread($fHandler, 11);
  fclose($fHandler);

  echo $curRating;

?>